﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/AdminMaster.Master" Inherits="System.Web.Mvc.ViewPage<VietThuongLMS.Areas.Admin.Models.LogOnModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <div class="login-form" style="width: 330px; margin: 200px auto; border: 1px solid #CCCCCC;
        border-radius: 10px; padding: 20px; background-color: White;">
        <h2>
            Login</h2>

            <% Html.EnableClientValidation();
       using (Html.BeginForm("Login", "Home", new { area = "Admin" }, FormMethod.Post, new { @class = "form-horizontal", @id = "formLogin", @name = "formLogin" }))
       {
           Html.ValidationSummary(true); %>

        <%--<form id="Form1" class="form-horizontal" runat="server">--%>
        <div class="control-group">
            <label class="control-label" for="inputUser" style="width: 75px">
                Username</label>
            <div class="controls" style="margin-left: 90px;">
                <%: Html.TextBoxFor(t => t.UserName, new { id = "userName", placeholder = "Username" })%>
                <%: Html.ValidationMessageFor(m => m.UserName)%>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="inputPassword" style="width: 75px">
                Password</label>
            <div class="controls" style="margin-left: 90px;">
                <%: Html.PasswordFor(t => t.Password, new { id = "passWord", placeholder = "Password" })%>
                <%: Html.ValidationMessageFor(m => m.Password)%>
            </div>
        </div>
        <div class="control-group">
            <div class="controls" style="margin-left: 90px;">
                <label class="checkbox">
                    <%: Html.CheckBoxFor(m => m.RememberMe) %> Remember me
                </label>
            </div>
        </div>
        <div class="control-group">
            <div class="controls" style="margin-left: 90px;">
                <button id="Button1" name="loginSubmit" type="submit" class="btn btn-primary">
                Sign in</button>
            </div>
        </div>

        <% } %>
    </div>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript" src="<%: Url.Content("~/Scripts/MicrosoftAjax.js") %>"></script>
    <script type="text/javascript" src="<%: Url.Content("~/Scripts/MicrosoftMvcValidation.js") %>"></script>
</asp:Content>
